package com.tp;

import org.json.JSONException;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;



public class Detail extends Activity {
	String url;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		/*setContentView(R.layout.activity_detail);
		WebView webview = (WebView) (findViewById(R.id.detail_web));
		try {
			url = ListObject.obj.getString("url");
		} catch(JSONException e) {
			
		}
	webview.getSettings().setJavaScriptEnabled(true);
		webview.loadUrl("http://google.com");*/
		try {
			url = ListObject.obj.getString("url");
		} catch(JSONException e) {
			
		}
		Uri uri = Uri.parse(url);
		 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
		 startActivity(intent);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_detail, menu);
		return true;
	}

}
